cxx = meson.get_compiler('cpp')
#bwl_cxxflags = wlroots_global_cflags

#add_project_arguments(cxx.get_supported_arguments(bwl_cxxflags), language: 'cpp')

glib = dependency('glib-2.0')
sigcpp = dependency('sigc++-3.0')
srcs = files(
        'main.cpp',
        'util.h',
        'util.c',
        'server.h',
        'server.cpp',
#        'cursor.h',
#        'cursor.c',
#        'keyboard_manager.h',
#        'keyboard_manager.c',
#        'seat.h',
#        'seat.cpp',
#        'monitor.h',
#        'monitor.c',
#        'client.h',
#        'client.c',
#        'xdg_shell.h',
#        'xdg_shell.c',
#        'xdg_decoration.h',
#        'xdg_decoration.c',
#        'keyboard.h',
#        'keyboard.cpp',
#        'output.h',
#        'output.cpp',
        'wayland-glib.h',
        'wayland-glib.c',
        'log.h',
        'log.cpp',
        'utils.h',
        'utils.cpp',
        'macros.h',
#        'input.h',
#        'input.cpp',
        'output_wrapper.h',
        'output_wrapper.cpp',
        'toplevel_wrapper.h',
        'toplevel_wrapper.cpp',
        'cursor_wrapper.h',
        'cursor_wrapper.cpp',
        'keyboard_wrapper.h',
        'keyboard_wrapper.cpp',
        'seat_wrapper.h',
        'seat_wrapper.cpp',
        'view.h',
        'view.cpp',
        'xdg_view.h',
        'xdg_view.cpp',
        'workspace.h',
        'workspace.cpp',
        'key_state.h',
        'key_state.cpp',
        'keyboard_group.h',
        'keyboard_group.cpp',
)

executable(
        'bwl2',
        [srcs, wlroots_protocols_client_header['xdg-shell']],
        dependencies: [wlroots_deps, glib, sigcpp],
        #cpp_args: bwl_cxxflags,
)
